import React, { memo } from 'react'
import { useNavigate } from 'react-router-dom'
const Detail = memo(() => {
  const navigate=useNavigate()
  return (
    <div>
      <button onClick={()=>navigate('/Home')}>点击前往Home</button>
    </div>
  )
})

export default Detail